const Router = require('koa-router')
const { ParameterException } = require('../../../utils/http-exception')
const { User } = require('../../models/user')
const router = new Router({
  //统一这是前缀
  prefix: '/api/v1/book' 
})
//获取热门书籍
router.get('/hot_list',async (ctx,next) => {
  throw new ParameterException()
  global.responseData(ctx, 'chenggongasdf')
  
})
router.get('/sssss',async (ctx,next) => {
  console.log(3333);
  
})

module.exports = router